<script type="text/javascript">
	$(function() {
		$("#checkAll").checkall({itemName: "object"});
	});
/* 	$(document).ready(function(){
		netdisk.recycleBin();
	}) */
</script>

<a class="btn btn-primary" href="javascript:void(0);" onclick="netdisk.up();">↑</a>
<a class="btn btn-primary" href="javascript:void(0);" onclick="netdisk.home();">主页</a>
<label id="location"></label>
<div></div>
<a class="btn btn-primary" href="javascript:void(0);" onclick="netdisk.restore();">恢复</a>
<a class="btn btn-primary" href="javascript:void(0);" onclick="netdisk.deleteObject();">删除</a>
<a class="btn btn-primary" href="javascript:void(0);" onclick="netdisk.clear();">清空</a>
<table id="objectList" class="table table-striped table-hover">
	<thead>
		<tr>
			<th width="4%" scope="col"><input
				id="checkAll" name="" type="checkbox" /></th>
			<th width="32%" scope="col">名称</th>
			<th width="32%" scope="col">大小</th>
			<th width="32%" scope="col">修改日期</th>
		</tr>
	</thead>
	<tbody>
		<#list list as item>
		<tr <#if ((item_index+1) % 2 == 0) >class="oddrow"</#if>>
			<td class="c"><input name="object" type="checkbox" value="${item.name}" /></td>
	        <td>
	        	<#if item.type == "folder" > <a class="btn btn-primary" href="javascript:void(0);"
					onclick="netdisk.nextList('${item.name}')">${item.name}</a></#if>
				 <#if item.type == "file" > ${item.name}</a> </#if> 
			</td>
	        <td>${item.sizeWithUnit}</td>
	        <td>${item.lastModified}</td>
	    </tr>
		</#list>
	</tbody>
</table>
